package cn.itrip.dao.service;

import cn.itrip.beans.pojo.ItripAreaDic;
import cn.itrip.beans.pojo.ItripHotel;
import cn.itrip.dao.mapper.ItripAreaDicMapper;
import cn.itrip.dao.mapper.ItripHotelMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Tequila
 **/
@Service
public class ItripHotelServiceImpl implements ItripHotelService {
    @Autowired
    private ItripHotelMapper itripHotelMapper;
    @Autowired
    private ItripAreaDicMapper itripAreaDicMapper;
    @Override
    public ItripHotel queryHotelById(Integer hotelId) {
        return itripHotelMapper.selectById(hotelId);
    }

    @Override
    public List<ItripAreaDic> queryTradingAreaNameList(Integer hotelId) {
        return itripAreaDicMapper.queryTradingAreaNameList(hotelId);
    }
}
